home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 January: Mac OS SDK / Dev.CD Jan 97 SDK2.toast / Development Kits (Disc 2) / OpenDoc Development Framework / ODF-Interest Archive / May 96 / Kudos and Q's < prev    next >
Encoding:
Internet Message Format  |  1996-12-03  |  2.7 KB  |  [TEXT/ttxt]

  1. Subject:     Kudos and Q's
  2. Sent:        5/26/96 6:12 PM
  3. Received:    5/28/96 8:25 AM
  4. From:        Brian Arnold, arnold@lumina.com
  5. Reply-To:    ODF Interest, ODF-Interest@CILabs.ORG
  6. To:          OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
  7.  
  8. Hi ODF types,
  9.  
  10. I spent half a day re-implementing my diagram editor based on Container,
  11. and I'm happy to say I got farther faster than my previous ODF
  12. re-implementations ;-).  Although I'd like to think I'm comfortable with
  13. ODF, I have to give kudos to ODF 1 for having good debug assertions that
  14. tell me what I'm doing wrong (sometimes even with recent d9/d11 code).
  15.  
  16. Lesson/question: I tried in vain to find an authoritative answer to the
  17. question of how to construct a FW_Cursor from the documentation and
  18. examples, but all the examples use cursors that are in ODF, and my limited
  19. documentation search only told me about the Frame cursor handling method
  20. (which in the Container example is implemented in the View class), not
  21. anything about how to use FW_Cursor.  I might not have searched hard
  22. enough.
  23.  
  24. I guessed that the FW_Cursor constructor, which can default its "instance"
  25. parameter to NULL, doesn't really want NULL after all, and needs
  26. FW_gInstance.  When I do this, it works and doesn't give me assertions.  It
  27. would be nice if I don't supply an "instance" that it default to
  28. FW_gInstance.
  29.  
  30. // would be nice if I didn't have to think about FW_gInstance
  31. FW_CCursor gBrowseCursor(kBrowseCursor, FW_gInstance);
  32.  
  33. Lesson/question: I looked at the DU folder for SOM examples since I want my
  34. calculation engine wrapped with SOM (or at least I think I do) so that I
  35. can later turn it into a thread or separate process by replacing the SOM
  36. library.
  37.  
  38. Several SOM-related issues come to mind (and forgive my ignorance, I'm
  39. trying to behave like a casual user, not a sprocket-head), and I realize
  40. this is slightly peripheral to ODF itself.
  41.  
  42. The meta-question is: if I use SOM directly, will my source code be
  43. cross-platform compatible (I know it probably is for OS/2, but what about
  44. the $20,000 question, Windows95/NT?).
  45.  
  46. The first more pragmatic question is: I don't really care about the "S",
  47. ".xh" and ".xih" files that are the output of the SOM compiler, do I?  This
  48. is just stuff to placate the linker and bind my calls, right?
  49.  
  50. The second more pragmatic question is: Metrowerks CW9 binds ".idl" with the
  51. "SOMObjects TS" CodeWarrior plugin, does this mean the Finance SOM example
  52. could be reworked so it doesn't need the MPW make file (nb, the MPW
  53. 'script' file)?
  54.  
  55. - Brian
  56.  
  57. ---------------------------------------------------------------
  58. Brian Arnold                                  arnold@lumina.com
  59. Director of Software Development
  60. Lumina Decision Systems, Inc.            http://www.lumina.com/
  61.  
  62.